<?php
namespace app\Admin\model;

use think\Db;
use think\Model;

class Like extends Model
{
	public function get_LikeList()
	{
		return Db::name('like')->select();
	}

	public function get_LikeAdd($data)
	{
		return Db::table('tp_like')->insert($data);
	}

	public function get_LikeOne($id)
	{
		return Db::name('like')->where(array('id'=>$id))->find();
	}

	public function get_LikeEdit($data,$id)
	{
		return Db::table('tp_like')->where(array('id'=>$id))->update($data);
	}

	public function get_LikeDel($id)
	{
		return Db::table('tp_like')->where(array('id'=>$id))->delete();
	}
}